import React, { Component } from 'react'
import classNames from 'classnames'
import SiteUser from './SiteUser'

export default class DetailBlock extends Component {
  render () {
    const { active } = this.props
    const classes = classNames('detail-block','detail-block__left', 'flex-box', { 'detail-block__left_active': active, })
    return (
      <div className={classes}>
        <div className="detail-block__row flex-box">
        <SiteUser title="一号线今日客流" id="1" d="1" />
        <SiteUser title="二号线今日客流" id="2" d="1" />
        </div>
        <div className="detail-block__row flex-box"> 
        <SiteUser title="一号线过去一周客流" id="1" d="7" />
        <SiteUser title="二号线过去一周客流" id="2" d="7"  />
        </div>
      </div>
    )
  }
}